package jUnit_tests;

import static org.junit.Assert.*;
import model.Bidder;

import org.junit.Test;

/**
 * Junit test for the User class.
 * 
 * @author Abdiel Cabrera
 *
 */
public class Junit_test_for_user {
	
	// Note: the user class is mainly to hold lots of fields.
	// It has many getters and setters that are not being tested.
	// The only extra method developed in the class is called isValidUser().
	
	private Bidder user = new Bidder("Abdiel", "Cabrera", "username", "password", null, null, null);
	
	@Test
	public void testisValidUser()
	{
		assertTrue("Testing CreditCard1", user.isValidUser("username", "password"));
		assertFalse("Testing CreditCard2", user.isValidUser("fake", "fake"));
	}

}
